package ${package}.core.dao;
import java.util.List;
import org.openbpm.base.dao.BaseDao;
import ${package}.core.model.${relation.upperFirstTableKey};

/**
 * ${relation.tableComment} DAO层<br/>
 * @author ${author}
 * @email ${email}
 * @time ${currentDate}
 */
public interface ${relation.upperFirstTableKey}Dao extends BaseDao<String,${relation.upperFirstTableKey}> {

	<#if relation.parent??>
	public void delBy${genCodeUtil.getUpperFk(relation,true)} (String ${genCodeUtil.getFkName(relation,true)});

	<#if relation.type =='oneToMany'>
	public List<${relation.upperFirstTableKey}> getBy${genCodeUtil.getUpperFk(relation,true)}(String ${genCodeUtil.getFkName(relation,true)});
	</#if>
	<#if relation.type =='oneToOne'>
	public ${relation.upperFirstTableKey} getBy${genCodeUtil.getUpperFk(relation,true)}(String ${genCodeUtil.getFkName(relation,true)});
	</#if>
	</#if>
}
